import { BaseService, Service } from "@/utils/request";
@Service("wxapi")
export default class extends BaseService {
  // 登录
  login(data) {
    return this.request({
      url: "/wxlogin",
      method: "POST",
      data,
    });
  }
  // 群组解密
  encryptData(data) {
    return this.request({
      url: "/encryptData",
      method: "POST",
      data,
    });
  }
  getLotteryCount() {
    return this.request({
      url: "/getLotteryCount",
      method: "GET",
    });
  }
  // 获取抽奖结果
  lottery(data) {
    return this.request({
      url: "/lotteryActivity",
      method: "POST",
      data,
    });
  }
}
